-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GITHUB-8970: Cannot assign products to categories not under tree root. #11817
Conversation
@p-bystritsky thanks for this PR. Could you please look at the test failures.
And
|
@p-bystritsky I do not think this fixes the issue fully. In the case of your fix you will no longer be able to have malfunctioning categories and the save via the admin should still work, which is good, but the core of the issue raised was the usage of As mentioned in the issue #8970 Do you think you will be able to make this change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to remove the usage of list
as this has changed between php5 and php7 and as noted Generally speaking, it is advisable to avoid relying on a specific order of operation, as this may change again in the future.
Hello, @dmanners. I'll try to remove list usage with the hint you provided. |
Description
Added ability to assign products to categories if those products are already assigned to category tree root (id=1).
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist